package com.huijiet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huijiet.entity.NewsContent;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.NotNull;

public interface NewsContentMapper extends BaseMapper<NewsContent>{

    /**根据新闻编号查询*/
    NewsContent getByNewsId(@Param("newsId")Integer newsId);

    /**根据新闻编号删除*/
    void deleteByNewsId(@Param("newsId")Integer newsId);
}
